package com.ylbh.modules.share.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.utils.PageDTO;
import com.ylbh.modules.share.entity.WeChatShare;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * 微信分享
 * @author czx
 * @date 2019-05-13 16:42:05
 */
@Mapper
@Repository
public interface WeChatShareMapper extends BaseMapper<WeChatShare> {

    /**
     * 微信分享列表
     * @param pageDTO
     * @param page
     * @return
     */
    List<WeChatShare> selectShareList(@Param(value = "pageDTO")PageDTO pageDTO, Page page);

    /**
     * 微信分享详情
     * @param id
     * @return
     */
    WeChatShare selectShareDetailsById(@Param(value = "id")String id);

    /**
     * 微信分享修改
     * @param weChatShare
     */
    void updateShareById(@Param(value = "weChatShare")WeChatShare weChatShare);

    /**
     * 新增微信分享
     * @param weChatShare
     */
    void insertShare(@Param(value = "weChatShare")WeChatShare weChatShare);

    /**
     * 删除分享
     * @param list
     */
    void deleteShareById(@Param(value = "list")List<String> list);
}
